package com.ghf.dp9.demo;

import java.awt.*;

/**
 * 建造抽象类，抽象类中定义了创建人的各个部件的抽象方法，定义了实现类中必须重写的方法
 */
public abstract class PersonBuilder {

    protected Graphics g;

    public void setG(Graphics g) {
        this.g = g;
    }

    public abstract void BuildHead();
    public abstract void BuildBody();
    public abstract void BuildArmLeft();
    public abstract void BuildArmRight();
    public abstract void BuildLegLeft();
    public abstract void BuildLegRight();


}
